package com.entity;
import javax.validation.constraints.Pattern;
import java.util.Date;

public class AsUser {
	
    private Integer id;

    private String userCode;

    @Pattern( regexp = "^\\w{3,6}$" , message = "用户名需为3-6位数字/字母/下划线" )
    private String userName;

    @Pattern( regexp = "\\w{6,}" , message = "密码需不少于6位数字/字母/下划线"  )
    private String userPassword;

    private Date creationTime;

    private Date lastLoginTime;

    private String createdBy;

    private Date lastUpdateTime;

    private Boolean isStart;

    private Integer roleId;

    public AsUser(){}

    public Integer getId()
    {
        return id;
    }

    public void setId( Integer id )
    {
        this.id = id;
    }

    public String getUserCode()
    {
        return userCode;
    }

    public void setUserCode( String userCode )
    {
        this.userCode = userCode;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName( String userName )
    {
        this.userName = userName;
    }

    public String getUserPassword()
    {
        return userPassword;
    }

    public void setUserPassword( String userPassword )
    {
        this.userPassword = userPassword;
    }

    public Date getCreationTime()
    {
        return creationTime;
    }

    public void setCreationTime( Date creationTime )
    {
        this.creationTime = creationTime;
    }

    public Date getLastLoginTime()
    {
        return lastLoginTime;
    }

    public void setLastLoginTime( Date lastLoginTime )
    {
        this.lastLoginTime = lastLoginTime;
    }

    public String getCreatedBy()
    {
        return createdBy;
    }

    public void setCreatedBy( String createdBy )
    {
        this.createdBy = createdBy;
    }

    public Date getLastUpdateTime()
    {
        return lastUpdateTime;
    }

    public void setLastUpdateTime( Date lastUpdateTime )
    {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Boolean getIsStart()
    {
        return isStart;
    }

    public void setIsStart( Boolean start )
    {
        isStart = start;
    }

    public Integer getRoleId()
    {
        return roleId;
    }

    public void setRoleId( Integer roleId )
    {
        this.roleId = roleId;
    }
}